package com.medical.mapper;

import com.medical.entity.AdminEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AdminMapper {
    AdminEntity findByAdminAccountAndUserPassword(@Param("adminAccount") String adminAccount,@Param("adminPassword")String adminPassword);

    AdminEntity findByAdminAccount(@Param("adminAccount") String adminAccount);

    void insertAdmin(@Param("adminAccount")String adminAccount, @Param("adminPassword")String adminPassword);

    List<AdminEntity> selectList();

    int update(AdminEntity adminEntity);

    boolean delete(@Param("adminAccount") String adminAccount);
}
